import http from "@/utils/http";

// 分页
export const goodsStandardPage = (params)=> http.get('/merchantsapi/goods/standard/page', params)

// 详情
export const goodsStandardDetail = (id)=> http.get(`/merchantsapi/goods/standard/detail/${id}`)

// 新增
export const goodsStandardAdd = (data)=> http.post('/merchantsapi/goods/standard/add', data)

// 编辑
export const goodsStandardEdit = (data)=> http.post('/merchantsapi/goods/standard/edit', data)

// 上下架
export const goodsStandardSale = (id, sale)=> http.post(`/merchantsapi/goods/standard/${id}/${sale}`)